Class Encapsulation and Object Encapsulation - An Empirical Study

نویسندگان

  • Janina Voigt
  • Warwick Irwin
  • Neville Churcher
چکیده

Two schools of thought underpin the way OO programming languages support encapsulation. Object encapsulation ensures that private members are accessible only within a single object. Class encapsulation allows private members to be accessed by other objects of the same class. This paper describes an empirical investigation into the way encapsulation is used in practice in class encapsulation languages C# and Java. We find arbitrary and inconsistent programming practices and suggest that object encapsulation is more intuitive and provides OO design advantages.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Object Oriented Programming with Java: Essentials and Applications

ion Encapsulation Abstraction separates interface and implementation. Encapsulation groups related concepts into one item.ion separates interface and implementation. Encapsulation groups related concepts into one item. User knows only the interfaces of the object and how to use them according to abstraction. Thus, it provides access to a specific part of data. Encapsulation hides data and the u...

متن کامل

Incorporating Methods and Encapsulation into Deductive Object-Oriented Database Languages

This paper presents an approach to incorporating rule-based methods and encapsulation of such methods into DOOD languages. The main novel feature of this approach is the simple and intuitive logic-based semantics that cleanly accounts for all important object-oriented features such as object identity, complex objects, typing, methods, encapsulation, class hierarchy, multiple structural and beha...

متن کامل

Optimization of a Method to Prepare Liposomes Containing HER2/Neu-Derived Peptide as a Vaccine Delivery System for Breast Cancer

The purpose of this study was to optimize a method for the encapsulation of P5 peptide, a new designed peptide containing MHC class I epitopes from rat HER2/neu protein, into liposomes as an approach for breast cancer vaccine formulation. The efficiency of liposomal encapsulation of peptides is generally low and development of an optimized method to increase encapsulation efficiency is a big ch...

متن کامل

Optimization of a Method to Prepare Liposomes Containing HER2/Neu-Derived Peptide as a Vaccine Delivery System for Breast Cancer

The purpose of this study was to optimize a method for the encapsulation of P5 peptide, a new designed peptide containing MHC class I epitopes from rat HER2/neu protein, into liposomes as an approach for breast cancer vaccine formulation. The efficiency of liposomal encapsulation of peptides is generally low and development of an optimized method to increase encapsulation efficiency is a big ch...

متن کامل

An OO Encapsulation of Lightweight OS Concurrency Mechanisms in the ACE Toolkit

This paper describes the design of the ACE object-oriented thread encapsulation class library. The architecture of this class library is presented from an end-user and internal design perspective and several key design issues are discussed. Readers should gain an understanding of the overall design approach, as well as the tradeoffs between various software quality factors such as performance, ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2010